import request from '@/utils/request'

export function fetchCityList(data) {
  return request({
    url: '/cloud-system/getCityList',
    method: 'post',
    data
  })
}

export function fetchCityOne(data) {
  return request({
    url: '/cloud-system/getOneCityDetail',
    method: 'post',
    data
  })
}

export function createCity(data) {
  return request({
    url: '/cloud-system/createOneCity',
    method: 'post',
    data
  })
}

export function updateCity(data) {
  return request({
    url: '/cloud-system/updateOneCity',
    method: 'post',
    data
  })
}

export function deleteCity(data) {
  return request({
    url: '/cloud-system/deleteOneCity',
    method: 'post',
    data
  })
}

export function lockCity(data) {
  return request({
    url: '/cloud-system/lockOneCity',
    method: 'post',
    data
  })
}

export function unlockCity(data) {
  return request({
    url: '/cloud-system/unlockOneCity',
    method: 'post',
    data
  })
}
